public class doudizu {
    public static void main(String[] args){
        String[] prok = new String[54];
        print(prok);
        ex(prok);
        for (int i = 0; i < prok.length; i++) {
            System.out.print(prok[i]+' ');
        }
    }
    public static void print(String[] prok){
        int index = 0;
        String[] colors = {"♠","♥","♣","♦"};
        String[] numbers = {"A","2","3","4","5","6","7","8","9","10","J","Q","K"};
        for(int i = 0;i < numbers.length;i++){
            for (int j = 0; j < colors.length; j++) {
                String card = colors[j] + numbers[i];
                prok[index] = card;
                index++;
            }
        }
        prok[index] = "小王";
        prok[index+1] = "大王";
    }
    public static void ex(String[] prok){
        String temp =" ";
        for (int i = 0; i < 54; i++) {
            temp = prok[i];
            prok[i] =  prok[(int)(Math.random()*54)] ;
            prok[(int)(Math.random()*54)] = temp;
        }

    }
}
